package com.wayhome.stock.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/stock")
public class StockController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping(value = "/reduct")
    public String reduction() {
        System.out.println("  减库存");
        return "服务端口: " + port + " 减库存成功" ;
    }
}
